﻿using Microsoft.Practices.Prism.Modularity;
using Microsoft.Practices.Prism.Regions;
using Microsoft.Practices.Unity;
using Autorent.Desktop.Model.Services;
using Autorent.Desktop.Modules.Autoes.Services;

namespace Autorent.Desktop.Modules.Autoes
{
    /// <summary>
    /// The module contains work with cars. Create, Update, Delete and Search.
    /// </summary>
    public class AutoesModule : IModule
    {
        private readonly IUnityContainer _container;

        public AutoesModule(IUnityContainer container)
        {
            _container = container;
        }

        public void Initialize()
        {
            _container.RegisterType(typeof(IAutoesRepository), typeof(AutoesRepository));
            _container.RegisterType(typeof(IAutoClassesRepository), typeof(AutoClassesRepository));
        }
    }
}
